package com.yc.ioc.test.bean4;

import com.yc.ioc.test.bean4.other.Banana;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App1_import {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig_1.class);
//        String[] s = ac.getBeanDefinitionNames();
//        for (String str : s) {
//            System.out.println(str);
//        }
        Banana banana = ac.getBean("com.yc.test.bean4.other.Banana",Banana.class);
        System.out.println(banana);

    }
}

